Release 10.1A: OpenEdge Development:
Java Open Clients
Miscellaneous management methods
These methods facilitate various management functions on an SDOResultSet, and include standard JDBC 2 methods and extensions to manage SmartDataObjects.
Standard JDBC 2 management methods
The supported standard JDBC 2 management methods include those listed in Table 9–4.
SmartDataObject management methods [extension]
The nonstandard SDOResultSet methods listed in Table 9–5 support a variety of features unique to SmartDataObject management.
Note: TherowIdvalue referenced in the following methods is equivalent to the value returned by the 4GLROWIDfunction and theSDOResultSet.getRowIdentity()method. For more information onROWID, see OpenEdge Development: Progress 4GL Handbook (or the OpenEdge DataServer Guide for any DataServer accessed by the SmartDataObject).
Table 9–5: Nonstandard SDOResultSet management methods Method Description Repositions the cursor at the row specified byrowId. Returns the 4GL query that populated this SDOResultSet object. Gets the string representation of the ROWID value for the current row that can be used as input toreOpenQuery(StringrowId),absolute(StringrowId), andSDOParameters.setRowIdentity(StringrowId). Provides direct access to the underlying 4GL methods of the SmartDataObject that are efficient for remote SmartDataObject access. The returned SDOInterface is a ProcObject that includes all relevant public methods provided by the SmartDataObject. Thus, you have full access to these SmartDataObject features without any limit imposed by the SDOResultSet interface. If the SDOResultSet is stateless, callinggetSDOInterface()creates a remote SmartDataObject procedure you can delete only by callingreleaseSDOInterface(). CallingreleaseSDOInterface()on a non-stateless SDOResultSet has no effect.See “Note on SDOInterface method” below the table. On a stateless SDOResultSet, releases the remote SmartDataObject procedure. CallingreleaseSDOInterface()on an SDOResultSet that is notStatelesshas no effect. This method is used in conjunction withgetSDOInterface(). Reopens the SmartDataObject query and positions the cursor before the first row. This method refreshes all the data in the SDOResultSet, makes all of the newly inserted rows visible, and removes all of the deleted rows. Any local modifications that you have not sent to the AppServer before you call this method are lost. Works likeNote: If the SDOResultSet is inreOpenQuery(), but the first row returned is the one specified byrowId.A nullrowIdis equivalent toreOpenQuery(). Usually it is more efficient to callreOpenQuery(StringrowId) than to first callreOpenQuery()and then callabsolute(StringrowId) to reposition on the specified row.SDOScrollingMode.PREFETCHmode, you cannot get the rows before thisrowId. For more information onSDOScrollingMode.PREFETCH, see the "Understanding SDOResultSet scrolling modes" section.
Note on SDOInterface method
The actual SmartDataObject methods supported through
SDOInterfaceinclude:For more information on these SmartDataObject methods, see OpenEdge Development: ADM and SmartObjects and OpenEdge Development: ADM Reference .Note: A typical application does not require direct access to theSDOInterface. Direct access to SmartDataObject methods requires expert knowledge of SmartDataObject internals. In some cases, mixing direct calls to the SmartDataObject with calls through the SDOResultSet interface can leave the SDOResultSet in an unexpected state. Use the SDOInterface directly only after carefully analyzing the alternatives.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |